@mixin tree-node-svg {
  position: relative;
  transform: translateX(-80px);
  right: -5px;
  filter: drop-shadow(var(--el-color-primary) 80px 0);
  background-size: 18px;
}

@mixin el_tree_theme($not-expanded-url, $is-expanded-url) {
  display: inline-block;
  min-width: 100%;
  .el-tree-node__expand-icon.expanded {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  /* //有子节点 且未展开 */
  .el-tree-node.is-focusable .el-tree-node__expand-icon {
    background: $not-expanded-url no-repeat -2px 2px;
    @include tree-node-svg;
  }
  /* //有子节点 且已展开 */
  .is-expanded .el-tree-node__expand-icon.expanded {
    background: $is-expanded-url no-repeat -2px 2px;
    @include tree-node-svg;
  }
  .el-tree-node__expand-icon.is-leaf {
    display: none;
  }
  //--------------------------------------------
  & .el-tree-node {
    position: relative;
    padding-left: 16px;
  }
  & .el-tree-node__children {
    padding-left: 16px;
  }
  & .el-tree-node :last-child:before {
    height: 38px;
  }
  & .el-tree-node:before {
    content: '';
    left: -3px;
    position: absolute;
    right: auto;
    border-width: 1px;
  }
  & .el-tree-node:after {
    content: '';
    left: -3px;
    position: absolute;
    right: auto;
    border-width: 1px;
  }
  & .el-tree > .el-tree-node:before,
  .tree-container .el-tree > .el-tree-node:after,
  & > .el-tree-node:before,
  & > .el-tree-node:after,
  & .el-tree-node__expand-icon.is-leaf {
    display: none;
  }
  & .el-tree-node:before {
    border-left: 1px dashed var(--el-color-primary);
    bottom: 0;
    height: 100%;
    top: -26px;
    width: 1px;
  }

  & .el-tree-node:after {
    border-top: 1px dashed var(--el-color-primary);
    height: 20px;
    top: 12px;
    width: 17px;
  }
  & .el-tree-node__content {
    padding-left: 0 !important;
  }
  & .el-checkbox__inner {
    margin-left: 3px;
  }
}
//el-tree
.tree_theme1 {
  @include el_tree_theme(url('@/assets/svg/open.svg'), url('@/assets/svg/close.svg'));
}
.tree_theme2 {
  @include el_tree_theme(url('@/assets/svg/plus.svg'), url('@/assets/svg/minus.svg'));
}
.tree_theme3 {
  @include el_tree_theme(url('@/assets/svg/plus-circle.svg'), url('@/assets/svg/minus-circle.svg'));
}
